package dao

import "go/models"

func GetAllUsers(username string) (error, models.Users) {
	var userdata models.Users
	err := db.Table("users").Where("username = ?",username).Find(&userdata).Error
	return err,userdata
}
